﻿<Window x:Class="DiagramDesigner.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen"
        Title="Move, resize and rotate"
        Height="550" Width="750">
  <Window.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources/DesignerItem.xaml"/>
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Window.Resources>
  <Canvas>
    <ContentControl Width="130"
                    Height="130"
                    Canvas.Top="150"
                    Canvas.Left="470"
                    Selector.IsSelected="True"
                    Style="{StaticResource DesignerItemStyle}">
      <Ellipse Fill="Blue"
               Stretch="Fill"
               IsHitTestVisible="False"/>
    </ContentControl>
    <ContentControl Width="130"
                    Height="130"
                    Canvas.Top="150"
                    Canvas.Left="150"
                    Selector.IsSelected="True"
                    Style="{StaticResource DesignerItemStyle}">
      <Path Fill="Red"
            Data="M 0,5 5,0 10,5 5,10 Z"
            Stretch="Fill"
            IsHitTestVisible="False"/>
    </ContentControl>
  </Canvas>
</Window>
